CC 	= gcc
CFLAGS 	= -g -O2 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include -I/usr/include/glib-2.0 -I/usr/local/include/gstreamer-0.10

RM 	= rm
RMFLAGS = -f
LDFLAGS = -L/usr/local/lib/gstreamer-0.10 -L/usr/lib
LIBS = -lgstreamer-0.10
TARGETS  = gst_app
OBJECTS  = main.o

gst_app: $(OBJECTS)
	$(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS)

.PHONY: clean

clean:
	$(RM) $(RMFLAGS) $(TARGETS) $(OBJECTS) core

.SUFFIXES: .o .c

.c.o:
	$(CC) $(CFLAGS) -c $<

